/*
 * Licensed this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.boapi.ui.util;

/**
 * Helper type for user interfaces
 * @author Sebastian Ritter
 * @version 1.0.0.0
 */
public class ShoppingUIHelper {

    /**
     * @return Returns input pattern for ISSN
     * @see org.boapi.shop.ISSN
     */
    public static String getMaskForISSN () {
      return "####-###A";
    }
    /**
     * @return Return input pattern for actually ISBN
     * @see org.boapi.shop.ISMN
     */
    public static String getMaskForISMN () {
      return "979-0-####-####-#";
    }
    /**
     * @return Return input pattern for actually ISBN
     * @see org.boapi.shop.ISBN13
     */
    public static String getMaskForISBN () {
      return "97#-#-#####-###-A";
    }
    /**
     * @return Return input pattern for old ISBN
     * @see org.boapi.shop.ISBN10
     */
    public static String getMaskForISBN10 () {
      return "#-#####-###-A";
    }
    /**
     * @return Return input pattern for EAN13
     */
    public static String getMaskForEAN () {
      return ShoppingUIHelper.getMaskForGTIN();
    }
    /**
     * @return Return input pattern for GTIN
     */
    public static String getMaskForGTIN () {
      return "###-#-#####-###-A";
    }
}
